package com.hrms.domain;

import java.io.Serializable;
import java.util.Map;

import javax.jdo.listener.StoreCallback;
import javax.servlet.http.HttpServletRequest;

import com.google.appengine.api.datastore.Key;

public interface BusinessObject extends Serializable, StoreCallback {
	
	public Key getKey();

	public void setKey(Key key);
	
	public void save();
	
	public void delete();
	
	public String validate();
	
	public String fireEvents(String userAction, HttpServletRequest request) throws Exception;
	
	public void setLastModifyUser(String lastModifyUser);
	
	public void setCreatedByUser(String createdByUser);
	
	public String getNamer();
	
	public void setParameterMap(Map<String, String[]> parameterMap);
}
